package com.xhwl.logistics.dto.kafka;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@RequiredArgsConstructor
@AllArgsConstructor
public class VehicleAlarmDTO {

    public VehicleAlarmDTO(Integer projectId, String alarmInventoryCode, Integer deviceId, Date alarmTime, String imgUrl) {
        this.projectId = projectId;
        this.alarmInventoryCode = alarmInventoryCode;
        this.deviceId = deviceId;
        this.alarmTime = alarmTime;
        this.imgUrl = imgUrl;
    }

    @NonNull
    private Integer projectId;

    @NonNull
    private String alarmInventoryCode;

    @NonNull
    private Integer deviceId;

    @NonNull
    private Date alarmTime;

    private String imgUrl;

    private String content;

}
